<?php

namespace App\Models;

class RegistrationLogModel extends AbstractBaseModel
{

    protected $table = 'registration_log';

    // 定义常量
    const CUR_TYPE_ADD = 'add';
    const CUR_TYPE_CUT = 'cut';

    const TYPE_LIST =[
        self::CUR_TYPE_ADD => '增加',
        self::CUR_TYPE_CUT => '减少',
    ];

    public function company()
    {
        return $this->belongsTo(CompanyModel::class, 'company_id');
    }

}
